<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */
return [
    'default' => [
        // 'host' => 'r-bp1k5kgsmd3stp382dpd.redis.rds.aliyuncs.com',
        // 'auth' => 'o$ka25ENHF6!OiZ8',
        'host' => '192.168.1.178',
        'auth' => '123456',
        'port' => 6379,
        'db' => 14,
        'pool' => [
            'min_connections' => 1,
            'max_connections' => 10,
            'connect_timeout' => 10.0,
            'wait_timeout' => 3.0,
            'heartbeat' => -1,
            'max_idle_time' => (float) env('REDIS_MAX_IDLE_TIME', 60),
        ],
    ],

    'cache' => [
        // 'host' => 'r-bp1k5kgsmd3stp382dpd.redis.rds.aliyuncs.com',
        // 'auth' => 'o$ka25ENHF6!OiZ8',
        'host' => '192.168.1.178',
        'auth' => '123456',        
        'port' => 6379,
        'db' => 14,
        'pool' => [
            'min_connections' => 1,
            'max_connections' => 10,
            'connect_timeout' => 10.0,
            'wait_timeout' => 3.0,
            'heartbeat' => -1,
            'max_idle_time' => (float) env('REDIS_MAX_IDLE_TIME', 60),
        ],
    ],

    'wz_user' => [
        'getUserBlackKey' => 'getUserBlackCacheKey_',
        'expire' => 86400,
    ],
];
